package com.csc.trobbins4.svn;

import java.sql.Date;

public class Transaction {

	private Date date;
	private double amount;
	private String recipient;
	private boolean depOrWithdraw;
	private String acctNum;
	private String transID;
	
	//Basic constructor
	public Transaction(String acctNum, double amount, boolean type){
		//need to figure out a way to set Trans ID
		this.acctNum = acctNum;
		this.amount = amount;
		depOrWithdraw = type;
		date = new Date(System.currentTimeMillis());
		if(type==true){recipient="Deposit";}
		else{recipient = "Withdrawal";}
	}
	
	public Transaction(Date date, String acctNum, double amount, String recipient, boolean type){
		//need to figure out a way to set Trans ID
		this.acctNum = acctNum;
		this.amount = amount;
		this.depOrWithdraw = type;
		this.date = date;
		this.depOrWithdraw = type;
		this.recipient = recipient;
	}
		

}
